package cn.middle.edge.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.middle.common.base.mapper.BaseMapper;
import com.middle.common.base.service.impl.BaseServiceImpl;
import com.middle.common.result.Page;

import cn.middle.edge.entity.HairDown;
import cn.middle.edge.mapper.HairDownMapper;
import cn.middle.edge.service.HairDownService;

@Service
public class HairDownServiceImpl extends BaseServiceImpl<HairDown> implements HairDownService {
	
	@Autowired
	private HairDownMapper mapper;
	

	@Override
	public BaseMapper<HairDown> getDao() {
		return mapper;
	}

	@Override
	public Page<HairDown> listConditions(int page, int pageSize,String messageId,String interfaceName,String serviceId, String keyword) {
		PageHelper.startPage(page,pageSize);
		List<HairDown> hairDowns = mapper.listConditions(interfaceName,serviceId, messageId, keyword);
		return new Page<>(new PageInfo<>(hairDowns));
	}


}
